package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户对象 client
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class Client extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long clientId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String phoneNumber;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String email;

    /** 用户密码（哈希加密） */
    @Excel(name = "用户密码", readConverterExp = "哈=希加密")
    private String passwordHash;

    /** 第三方登录ID */
    @Excel(name = "第三方登录ID")
    private String thirdPartyId;

    /** 用户实名状态（1 已实名 0 未实名） */
    @Excel(name = "用户实名状态", readConverterExp = "1=,已=实名,0=,未=实名")
    private String verificationStatus;

    /** 用户注册时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用户注册时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationDate;

    /** 最后登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastLogin;

    public void setClientId(Long clientId) 
    {
        this.clientId = clientId;
    }

    public Long getClientId() 
    {
        return clientId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPasswordHash(String passwordHash) 
    {
        this.passwordHash = passwordHash;
    }

    public String getPasswordHash() 
    {
        return passwordHash;
    }
    public void setThirdPartyId(String thirdPartyId) 
    {
        this.thirdPartyId = thirdPartyId;
    }

    public String getThirdPartyId() 
    {
        return thirdPartyId;
    }
    public void setVerificationStatus(String verificationStatus) 
    {
        this.verificationStatus = verificationStatus;
    }

    public String getVerificationStatus() 
    {
        return verificationStatus;
    }
    public void setRegistrationDate(Date registrationDate) 
    {
        this.registrationDate = registrationDate;
    }

    public Date getRegistrationDate() 
    {
        return registrationDate;
    }
    public void setLastLogin(Date lastLogin) 
    {
        this.lastLogin = lastLogin;
    }

    public Date getLastLogin() 
    {
        return lastLogin;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("clientId", getClientId())
            .append("name", getName())
            .append("phoneNumber", getPhoneNumber())
            .append("email", getEmail())
            .append("passwordHash", getPasswordHash())
            .append("thirdPartyId", getThirdPartyId())
            .append("verificationStatus", getVerificationStatus())
            .append("registrationDate", getRegistrationDate())
            .append("lastLogin", getLastLogin())
            .toString();
    }
}
